/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JFrameProduto.java
 *
 * Created on 29/10/2011, 11:13:27
 */
package visao;

/**
 *
 * @author David
 */
public class JFrameProduto extends javax.swing.JFrame {

    /** Creates new form JFrameProduto */
    public JFrameProduto() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        barMenuAções = new javax.swing.JToolBar();
        jLabel17 = new javax.swing.JLabel();
        jButton5 = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        jButton8 = new javax.swing.JButton();
        lblCadastroProdutos = new javax.swing.JLabel();
        lblCodProdutos = new javax.swing.JLabel();
        txtCodProdutos = new javax.swing.JTextField();
        lblNomeProd = new javax.swing.JLabel();
        txtNomeProdutos = new javax.swing.JTextField();
        lblFabricante = new javax.swing.JLabel();
        txtFabricanteProdutos = new javax.swing.JTextField();
        lblFornecedorProd = new javax.swing.JLabel();
        cmbFornecedor = new javax.swing.JComboBox();
        lblUnidadeMedida = new javax.swing.JLabel();
        cmbUnidadeMedida = new javax.swing.JComboBox();
        lblValorCusto = new javax.swing.JLabel();
        txtValorCusto = new javax.swing.JTextField();
        lblValorvenda = new javax.swing.JLabel();
        txtValorVenda = new javax.swing.JTextField();
        lblQtdMinEstoque = new javax.swing.JLabel();
        txtQtdMinEstoque = new javax.swing.JTextField();
        lblQtdEstoque = new javax.swing.JLabel();
        pnlDadosGrupProd = new javax.swing.JPanel();
        lblGrupProd = new javax.swing.JLabel();
        cmbGrupProd = new javax.swing.JComboBox();
        jScrollPaneGrupProd = new javax.swing.JScrollPane();
        tbeResultado = new javax.swing.JTable();
        txtQtdEstoqueProdutos = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        barMenuAções.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        barMenuAções.setRollover(true);
        barMenuAções.setToolTipText("Sair");
        barMenuAções.add(jLabel17);

        jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/page.png"))); // NOI18N
        jButton5.setToolTipText("Novo");
        jButton5.setFocusable(false);
        jButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        barMenuAções.add(jButton5);

        jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/bin_closed.png"))); // NOI18N
        jButton7.setToolTipText("Editar");
        jButton7.setFocusable(false);
        jButton7.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton7.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        barMenuAções.add(jButton7);

        jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/pencil.png"))); // NOI18N
        jButton6.setToolTipText("Salvar");
        jButton6.setFocusable(false);
        jButton6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        barMenuAções.add(jButton6);

        jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/disk.png"))); // NOI18N
        jButton8.setToolTipText("Excluir");
        jButton8.setFocusable(false);
        jButton8.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton8.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        barMenuAções.add(jButton8);

        lblCadastroProdutos.setFont(new java.awt.Font("Verdana", 0, 18));
        lblCadastroProdutos.setForeground(new java.awt.Color(102, 102, 255));
        lblCadastroProdutos.setText("Cadastro de Produtos");
        lblCadastroProdutos.setName("lblCadastroAnimal"); // NOI18N

        lblCodProdutos.setFont(new java.awt.Font("Verdana", 0, 12));
        lblCodProdutos.setForeground(new java.awt.Color(51, 51, 51));
        lblCodProdutos.setText("Código do Produto:");

        txtCodProdutos.setFont(new java.awt.Font("Verdana", 0, 12));
        txtCodProdutos.setForeground(new java.awt.Color(51, 51, 51));

        lblNomeProd.setFont(new java.awt.Font("Verdana", 0, 12));
        lblNomeProd.setForeground(new java.awt.Color(51, 51, 51));
        lblNomeProd.setText("Nome:");

        txtNomeProdutos.setFont(new java.awt.Font("Verdana", 0, 12));
        txtNomeProdutos.setForeground(new java.awt.Color(51, 51, 51));

        lblFabricante.setFont(new java.awt.Font("Verdana", 0, 12));
        lblFabricante.setForeground(new java.awt.Color(51, 51, 51));
        lblFabricante.setText("Fabricante:");

        txtFabricanteProdutos.setFont(new java.awt.Font("Verdana", 0, 12));
        txtFabricanteProdutos.setForeground(new java.awt.Color(51, 51, 51));

        lblFornecedorProd.setFont(new java.awt.Font("Verdana", 0, 12));
        lblFornecedorProd.setForeground(new java.awt.Color(51, 51, 51));
        lblFornecedorProd.setText("Fornecedor:");

        lblUnidadeMedida.setFont(new java.awt.Font("Verdana", 0, 12));
        lblUnidadeMedida.setForeground(new java.awt.Color(51, 51, 51));
        lblUnidadeMedida.setText("Unidade de Medida:");

        lblValorCusto.setFont(new java.awt.Font("Verdana", 0, 12));
        lblValorCusto.setForeground(new java.awt.Color(51, 51, 51));
        lblValorCusto.setText("Valor do Custo: R$");

        txtValorCusto.setFont(new java.awt.Font("Verdana", 0, 12));
        txtValorCusto.setForeground(new java.awt.Color(51, 51, 51));

        lblValorvenda.setFont(new java.awt.Font("Verdana", 0, 12));
        lblValorvenda.setForeground(new java.awt.Color(51, 51, 51));
        lblValorvenda.setText("Valor da Venda: R$");

        txtValorVenda.setFont(new java.awt.Font("Verdana", 0, 12));
        txtValorVenda.setForeground(new java.awt.Color(51, 51, 51));

        lblQtdMinEstoque.setFont(new java.awt.Font("Verdana", 0, 12));
        lblQtdMinEstoque.setForeground(new java.awt.Color(51, 51, 51));
        lblQtdMinEstoque.setText("Quantidade Mínima em Estoque:");

        txtQtdMinEstoque.setFont(new java.awt.Font("Verdana", 0, 12));
        txtQtdMinEstoque.setForeground(new java.awt.Color(51, 51, 51));

        lblQtdEstoque.setFont(new java.awt.Font("Verdana", 0, 12));
        lblQtdEstoque.setForeground(new java.awt.Color(51, 51, 51));
        lblQtdEstoque.setText("Quantidade em Estoque:");

        pnlDadosGrupProd.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(102, 102, 102), 1, true), "Dados do Grupo de Produto", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 12), new java.awt.Color(51, 51, 51))); // NOI18N

        lblGrupProd.setFont(new java.awt.Font("Verdana", 0, 12));
        lblGrupProd.setForeground(new java.awt.Color(51, 51, 51));
        lblGrupProd.setText("Grupo de Produto");

        tbeResultado.setFont(new java.awt.Font("Verdana", 0, 12));
        tbeResultado.setForeground(new java.awt.Color(51, 51, 51));
        tbeResultado.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null}
            },
            new String [] {
                "Característica", "Valor"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPaneGrupProd.setViewportView(tbeResultado);

        javax.swing.GroupLayout pnlDadosGrupProdLayout = new javax.swing.GroupLayout(pnlDadosGrupProd);
        pnlDadosGrupProd.setLayout(pnlDadosGrupProdLayout);
        pnlDadosGrupProdLayout.setHorizontalGroup(
            pnlDadosGrupProdLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDadosGrupProdLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlDadosGrupProdLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlDadosGrupProdLayout.createSequentialGroup()
                        .addComponent(lblGrupProd)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cmbGrupProd, 0, 248, Short.MAX_VALUE))
                    .addComponent(jScrollPaneGrupProd, javax.swing.GroupLayout.PREFERRED_SIZE, 364, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        pnlDadosGrupProdLayout.setVerticalGroup(
            pnlDadosGrupProdLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDadosGrupProdLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlDadosGrupProdLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cmbGrupProd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblGrupProd))
                .addGap(18, 18, 18)
                .addComponent(jScrollPaneGrupProd, javax.swing.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE)
                .addContainerGap())
        );

        txtQtdEstoqueProdutos.setFont(new java.awt.Font("Verdana", 0, 12));
        txtQtdEstoqueProdutos.setForeground(new java.awt.Color(51, 51, 51));

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 404, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(barMenuAções, javax.swing.GroupLayout.PREFERRED_SIZE, 399, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(layout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addComponent(lblCadastroProdutos))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addComponent(lblCodProdutos)
                            .addGap(10, 10, 10)
                            .addComponent(txtCodProdutos, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addComponent(lblNomeProd, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(39, 39, 39)
                            .addComponent(txtNomeProdutos, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addComponent(lblFabricante)
                            .addGap(18, 18, 18)
                            .addComponent(txtFabricanteProdutos, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addComponent(lblFornecedorProd)
                            .addGap(13, 13, 13)
                            .addComponent(cmbFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addComponent(lblUnidadeMedida)
                            .addGap(10, 10, 10)
                            .addComponent(cmbUnidadeMedida, javax.swing.GroupLayout.PREFERRED_SIZE, 253, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addComponent(lblValorCusto)
                            .addGap(18, 18, 18)
                            .addComponent(txtValorCusto, javax.swing.GroupLayout.PREFERRED_SIZE, 253, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addComponent(lblValorvenda)
                            .addGap(15, 15, 15)
                            .addComponent(txtValorVenda, javax.swing.GroupLayout.PREFERRED_SIZE, 253, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addComponent(lblQtdMinEstoque)
                            .addGap(4, 4, 4)
                            .addComponent(txtQtdMinEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addComponent(lblQtdEstoque)
                            .addGap(10, 10, 10)
                            .addComponent(txtQtdEstoqueProdutos, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addComponent(pnlDadosGrupProd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(0, 0, Short.MAX_VALUE)))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 637, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(barMenuAções, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(lblCadastroProdutos)
                    .addGap(19, 19, 19)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGap(3, 3, 3)
                            .addComponent(lblCodProdutos))
                        .addComponent(txtCodProdutos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGap(3, 3, 3)
                            .addComponent(lblNomeProd))
                        .addComponent(txtNomeProdutos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(7, 7, 7)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGap(3, 3, 3)
                            .addComponent(lblFabricante))
                        .addComponent(txtFabricanteProdutos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(11, 11, 11)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGap(1, 1, 1)
                            .addComponent(lblFornecedorProd))
                        .addComponent(cmbFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(11, 11, 11)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGap(1, 1, 1)
                            .addComponent(lblUnidadeMedida))
                        .addComponent(cmbUnidadeMedida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(11, 11, 11)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGap(3, 3, 3)
                            .addComponent(lblValorCusto))
                        .addComponent(txtValorCusto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(11, 11, 11)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(lblValorvenda)
                        .addComponent(txtValorVenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(6, 6, 6)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(lblQtdMinEstoque)
                        .addComponent(txtQtdMinEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(11, 11, 11)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(lblQtdEstoque)
                        .addComponent(txtQtdEstoqueProdutos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(46, 46, 46)
                    .addComponent(pnlDadosGrupProd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(JFrameProduto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(JFrameProduto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(JFrameProduto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(JFrameProduto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new JFrameProduto().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JToolBar barMenuAções;
    private javax.swing.JComboBox cmbFornecedor;
    private javax.swing.JComboBox cmbGrupProd;
    private javax.swing.JComboBox cmbUnidadeMedida;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JScrollPane jScrollPaneGrupProd;
    private javax.swing.JLabel lblCadastroProdutos;
    private javax.swing.JLabel lblCodProdutos;
    private javax.swing.JLabel lblFabricante;
    private javax.swing.JLabel lblFornecedorProd;
    private javax.swing.JLabel lblGrupProd;
    private javax.swing.JLabel lblNomeProd;
    private javax.swing.JLabel lblQtdEstoque;
    private javax.swing.JLabel lblQtdMinEstoque;
    private javax.swing.JLabel lblUnidadeMedida;
    private javax.swing.JLabel lblValorCusto;
    private javax.swing.JLabel lblValorvenda;
    private javax.swing.JPanel pnlDadosGrupProd;
    private javax.swing.JTable tbeResultado;
    private javax.swing.JTextField txtCodProdutos;
    private javax.swing.JTextField txtFabricanteProdutos;
    private javax.swing.JTextField txtNomeProdutos;
    private javax.swing.JTextField txtQtdEstoqueProdutos;
    private javax.swing.JTextField txtQtdMinEstoque;
    private javax.swing.JTextField txtValorCusto;
    private javax.swing.JTextField txtValorVenda;
    // End of variables declaration//GEN-END:variables
}
